package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 *  事件处理记录
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_device_welding_record")
public class DeviceWeldingRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer wxUserId;
	private Integer shopId;
	private Integer fireWorkId;
	@ExcelColumn(value = "公司",col = 1)
	private String shopName;
	private Integer deviceId;
	@ExcelColumn(value = "电焊机编号",col = 4)
	private String deviceNum;
	private String deviceName;
	private Integer isSelf;
	private Integer isSafe;
	private Double lng;
	private Double lat;
	private Integer deviceType;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date useBeginTime;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date useEndTime;


	@ExcelColumn(value = "电焊工姓名",col = 2)
	private String workerName;
	private String workerPhone;
	@ExcelColumn(value = "焊工证",col = 3)
	private String certificateNum;
	private Integer departCheckState;
	private String departCheckResult;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private String departCheckTime;

	@ExcelColumn(value = "审核人",col = 5)
	private String departCheckUserName;
	private Integer checkDepartId;
	private Integer checkSysUserId;
	private String imgUrl;
	private Integer state;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date rebackTime;


	// 生产经理
	private Integer managerSysUserId;
	private Integer	managerCheckState;
	private Date managerCheckTime;
	private String managerCheckResult;





	/**
	 * 借还状态  0 -还  1 - 借
	 */
	private Integer useState;

//	@ExcelColumn(value = "申请时间",col = 7)
	@TableField(exist = false)
	private String createTimeStr;


	@ExcelColumn(value = "使用开始时间",col = 7)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(exist = false)
	private String useBeginTimeStr;

	@ExcelColumn(value = "使用结束时间",col = 8)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(exist = false)
	private String useEndTimeStr;


	@ExcelColumn(value = "使用时长",col = 9)
	@TableField(exist = false)
	private String useTimeStr;


	@ExcelColumn(value = "区域类型",col = 6)
	@TableField(exist = false)
	private String isSafeStr;


//	@ExcelColumn(value = "借还状态",col = 7)
	@TableField(exist = false)
	private String useStateStr;



	@TableField(exist = false)
	private List<String> workPositionImgs;
	@TableField(exist = false)
	private List<String> securityImgs;
	@TableField(exist = false)
	private Integer deviceUseState;

//	@TableField(exist = false)
//	private Integer isSafe;


	@TableField(exist = false)
	private String showUseTime;

	@TableField(exist = false)
	private String checkStateShow;

	@TableField(exist = false)
	private String checkStateResultShow;

}
